/****************************************************************************
** Meta object code from reading C++ file 'MySqlDataModel.h'
**
** Created: Tue Feb 19 10:45:07 2013
**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.4)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../src/MySqlDataModel.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'MySqlDataModel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 63
#error "This file was generated using the moc from 4.8.4. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_MySqlDataModel[] = {

 // content:
       6,       // revision
       0,       // classname
       0,    0, // classinfo
      10,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: signature, parameters, type, tag, flags
      16,   15,   15,   15, 0x06,
      37,   15,   15,   15, 0x06,

 // slots: signature, parameters, type, tag, flags
      62,   58,   15,   15, 0x0a,
      86,   82,   15,   15, 0x0a,

 // methods: signature, parameters, type, tag, flags
     135,  125,  121,   15, 0x02,
     165,  125,  160,   15, 0x02,
     200,  125,  191,   15, 0x02,
     219,   15,   15,   15, 0x02,
     233,   15,   15,   15, 0x02,
     244,   15,   15,   15, 0x02,

       0        // eod
};

static const char qt_meta_stringdata_MySqlDataModel[] = {
    "MySqlDataModel\0\0initialItemsLoaded()\0"
    "loadSQLData(QString)\0sql\0onLoadData(QString)\0"
    "dar\0onReply(bb::data::DataAccessReply)\0"
    "int\0indexPath\0childCount(QVariantList)\0"
    "bool\0hasChildren(QVariantList)\0QVariant\0"
    "data(QVariantList)\0removeItems()\0"
    "loadData()\0toggleFavorite()\0"
};

void MySqlDataModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Q_ASSERT(staticMetaObject.cast(_o));
        MySqlDataModel *_t = static_cast<MySqlDataModel *>(_o);
        switch (_id) {
        case 0: _t->initialItemsLoaded(); break;
        case 1: _t->loadSQLData((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->onLoadData((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->onReply((*reinterpret_cast< const bb::data::DataAccessReply(*)>(_a[1]))); break;
        case 4: { int _r = _t->childCount((*reinterpret_cast< const QVariantList(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 5: { bool _r = _t->hasChildren((*reinterpret_cast< const QVariantList(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 6: { QVariant _r = _t->data((*reinterpret_cast< const QVariantList(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = _r; }  break;
        case 7: _t->removeItems(); break;
        case 8: _t->loadData(); break;
        case 9: _t->toggleFavorite(); break;
        default: ;
        }
    }
}

const QMetaObjectExtraData MySqlDataModel::staticMetaObjectExtraData = {
    0,  qt_static_metacall 
};

const QMetaObject MySqlDataModel::staticMetaObject = {
    { &DataModel::staticMetaObject, qt_meta_stringdata_MySqlDataModel,
      qt_meta_data_MySqlDataModel, &staticMetaObjectExtraData }
};

#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &MySqlDataModel::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION

const QMetaObject *MySqlDataModel::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}

void *MySqlDataModel::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_MySqlDataModel))
        return static_cast<void*>(const_cast< MySqlDataModel*>(this));
    return DataModel::qt_metacast(_clname);
}

int MySqlDataModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DataModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void MySqlDataModel::initialItemsLoaded()
{
    QMetaObject::activate(this, &staticMetaObject, 0, 0);
}

// SIGNAL 1
void MySqlDataModel::loadSQLData(const QString & _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_END_MOC_NAMESPACE
